package com.example.library.dao;


import com.example.library.bean.model.User;
import org.springframework.data.jpa.repository.JpaRepository;


public interface UserRepository extends JpaRepository<User,Long> {

    long countAllBySno(String sno);

    User findBySnoAndPassword(String sno,String password);

    User findByUserId(long userId);
}
